import {readFile} from 'fs';
import {parse} from '../src/htmlparser';

import {
    REGEX_TAG_OPEN,
    REGEX_TAG_ATTR,
    REGEX_TAG_CLOSE,
    REGEX_TAG_END,
    REGEX_TAG_TEXT,
    REGEX_CLOSURE_START,
    REGEX_CLOSURE_END,
    REGEX_STATEMENT
} from '../src/consts';


// console.log('REGEX_TAG_OPEN', REGEX_TAG_OPEN);
// console.log('REGEX_TAG_ATTR', REGEX_TAG_ATTR);
// console.log('REGEX_TAG_CLOSE', REGEX_TAG_CLOSE);
// console.log('REGEX_TAG_END', REGEX_TAG_END);
// console.log('REGEX_TAG_TEXT', REGEX_TAG_TEXT);
// console.log('REGEX_CLOSURE_START', REGEX_CLOSURE_START);
// console.log('REGEX_CLOSURE_END', REGEX_CLOSURE_END);
// console.log('REGEX_STATEMENT', REGEX_STATEMENT);


readFile('./example.html', 'utf8', function (err, data) {
    let rex = REGEX_TAG_TEXT.exec(data);
    console.log(rex);
});